package com.ruoyi.chy.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户车辆对象 car_info
 * 
 * @author liuweichao
 * @date 2025-05-30
 */
public class CarInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆编号 */
    private Integer id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Integer uid;

    /** 车辆类型 */
    @Excel(name = "车辆类型")
    private String type;

    /** 车牌编号 */
    @Excel(name = "车牌编号")
    private String carNum;

    /** 逻辑删除字段，0未删除，1已删除 */
    private Integer deleted;

    /** 是否默认 */
    @Excel(name = "是否默认")
    private Integer defaults;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUid(Integer uid) 
    {
        this.uid = uid;
    }

    public Integer getUid() 
    {
        return uid;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setCarNum(String carNum) 
    {
        this.carNum = carNum;
    }

    public String getCarNum() 
    {
        return carNum;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    public void setDefaults(Integer defaults) 
    {
        this.defaults = defaults;
    }

    public Integer getDefaults() 
    {
        return defaults;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("type", getType())
            .append("carNum", getCarNum())
            .append("deleted", getDeleted())
            .append("defaults", getDefaults())
            .toString();
    }
}
